#pragma once
#ifdef __QT5_TARGET

#include <QtWidgets\QWidget>

#else

#include <QWidget>

#endif

#include "korlapadmin_model.h"
class Validator
{
public:
	Validator(void);
	Validator(const QString& field);
	~Validator(void);
	void setModel(korlapAdmin_model* model);
	virtual int validate(QString& input) = 0;
	QString getMessage();
protected:
	korlapAdmin_model* model;
	QString message;
	QString field;
};
